<?php

declare(strict_types=1);

namespace App\Overwrites;

abstract class AbstractMapper extends \Mine\Abstracts\AbstractMapper
{
    /**
     * 获取导出列表
     * @param array|null $params
     * @param bool $isScope
     * @return array
     */
    public function getExportList(?array $params, bool $isScope = true): array
    {
        $list = $this->listQuerySetting($params, $isScope)->get();
        if (method_exists($this, 'handleExportItems')) {
            $this->handleExportItems($list, $params);
        }
        return $list->toArray();
    }
}
